<!DOCTYPE html>
<html>
<head lang="en">
    <meta charset="UTF-8">
    <title></title>
    <script src="http://static.whjdyl.net/js/jquery-1.10.2.min.js"></script>
</head>
<body>
    <input type="button" onclick="sent()" value="获取">
    <input type="button" onclick="sent1()" value="添加">
</body>
<script type="text/javascript">
    function sent(){
        $.ajax({
            url:'http://www.cheerby.cn/8dddao/priceList.php',
            type:"GET",
            success:function(data){
                console.log(data);
            }
        });
    }
//    function sent(){
//        $.ajax({
//            url:'http://127.0.0.1/BAESVN/lejienet/8dddao/priceList.php',
//            type:"GET",
//            success:function(data){
//                console.log(data);
//            }
//        });
//    }

    function sent1(){
        $.ajax({
            url:'http://180.76.137.202/gitTest/router/point.php',
            data:{
                name : '测试',
                lng : 114.2323,
                lat :30.4234,
                address : 'wuhan'
            },
            type:"POST",
            success:function(data){
                console.log(data);
            }
        });
    }

</script>
</html>